package com.fahai.web.service.impl;/**
 * Created by Lilinjun on 17/6/10.
 */

import com.fahai.web.dao.ProductInfoDao;
import com.fahai.web.entity.ProductInfo;
import com.fahai.web.service.ProductInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * ProductInfoService 实现类
 *
 * @author
 * @create 2017-06-10 下午12:20
 **/
@Service
@Transactional(rollbackFor = DataAccessException.class)
public class ProductInfoServiceImpl implements ProductInfoService {
    @Autowired
    ProductInfoDao dao;
    @Override
    public List getProductInfoOptions() {
        return dao.select(new ProductInfo());
    }
}
